package com.im.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.im.app.model.User;

import java.util.Date;
import java.util.List;
import java.util.Map;


public interface IUserService extends IService<User> {


    boolean updateById(User entity);

    User getUserByKefuIdAndIp(String kefuId, String ip);

    User getUserByDeviceId(String kefuId, String deviceId);

    User getUserBykamiCode(String kamicode);

    User getUserByUserId(String userId);

    List<User> getUserByKefuId(String kefuId, String date);

    int doBlackByUserIdAndIp(String userId, int status);

    int getTodayVisitor(String userId);

//    List<Map<String,String>> getSumVisitor(String userId);

    User getKefuUser(String userId);

}
